<div class="login-logo"></div>

<div class="account-container login">

    <div class="content clearfix">

        <?php echo $this->Form->create('User', array('id' => 'form-login'));?>

            <h1>Sign In</h1>

            <div class="login-fields">

                <p>Sign in using your registered account:</p>

                <?php
                $flash_msg = $this->Session->read('Message');
                if(isset($flash_msg['flash'])){
                    ?>
                    <div id="loginmsg" style="">
                        <?php echo $this->Message->msg('Login',$this->Session->flash(),'error'); ?>
                    </div>
                <?php
                }
                ?>

                <div class="field">
                    <label>Username:</label>
                    <?php echo $this->Form->input('username', array('id'=>'username' ,'class' => 'login username-field', 'placeholder'=>'Username', 'div' => false, 'label' => false)); ?>
                </div> <!-- /field -->

                <div class="field">
                    <label>Password:</label>
                    <?php echo $this->Form->input('password', array('type'=>'password', 'id'=>'password' ,'class' => 'login password-field', 'placeholder'=>'Password', 'div' => false, 'label' => false)); ?>
                </div> <!-- /password -->

            </div> <!-- /login-fields -->

            <div class="login-actions">
                <button type="submit" id="login-btn" class="button btn btn-large btn-secondary btn-custom-huge">Sign In</button>
            </div> <!-- .actions -->
        <?php echo $this->Form->end();?>

    </div> <!-- /content -->

</div> <!-- /account-container -->


<!-- Text Under Box -->
<div class="login-extra">
    &copy; 2012 Company - All Rights Reserved<br/>

</div> <!-- /login-extra -->

<!-- URLs -->
<input type="hidden" id="login-url" value="<?php echo $this->Html->url(array('controller' => 'Users', 'action' => 'login')); ?>" />
<input type="hidden" id="after-login-url" value="<?php echo $this->Html->url(array('controller' => 'Dashboard', 'action' => 'index')); ?>" />

<?php
    echo $this->Html->script('Scripts/login.js');
?>

